<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
  <xi:include href="master.html" />
  <head/>
  <body>
    <h3>${title}</h3>
    <div py:if="filters">
      <?python prev_controller = None ?>
      <table>
        <tbody>
          <tr py:for="filter in filters">
          <tr py:if="filter.controller != prev_controller or prev_controller == None">
            <td><h4>${filter.controller}</h4></td>
            <?python prev_controller = filter.controller ?>
          </tr>
          <td>${filter.name}</td>
          <td>
            <span>
              <a href="del_filter?fid=${filter.id}">delete</a>
              <a href="up_filter?fid=${filter.id}"><b>&#8593;&#8593;&#8593;</b></a>
              <a href="down_filter?fid=${filter.id}"><b>&#8595;&#8595;&#8595;</b></a>
            </span>
          </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>

